import Vue from 'vue'
import App from './App.vue'
import http from '@/utils/http'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 导入路由
import router from './router/index'
// 注册全局组件
import MyChannel from '@/components/my-channel'
Vue.component(MyChannel.name, MyChannel)

Vue.use(ElementUI)
Vue.prototype.$http = http
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
